<!DOCTYPE html>
<html lang="en">
<link>
<meta charset="UTF-8">
<title>测试用例输入</title>

</head>
<body>
<div class="container" id="app">
        <h1 class="text-center" >接口测试用例输入</h1>

    <form class="form-horizontal">

        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">用例名称</label>
            <div class="col-sm-10">
                <input v-model="request.requestPath" type="text" class="form-control" id="inputEmail3"
                       placeholder="请求地址">
            </div>
        </div>

        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">请求地址</label>
            <div class="col-sm-10">
                <input v-model="request.requestPath" type="text" class="form-control" id="inputPassword3"
                       placeholder="请求地址">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">请求方法</label>
            <div class="col-sm-10">
                <input v-model="request.requestMethod" type="text" class="form-control" id="inputPassword7"
                       placeholder="Password">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">请求头</label>
            <div class="col-sm-10">
                <textarea v-model="request.requestHeader" class="form-control" rows="5"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">请求依赖</label>
            <div class="col-sm-10">
                <textarea class="form-control" rows="5"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">请求体</label>
            <div class="col-sm-10">
                <textarea v-model="request.requestBody" class="form-control" rows="5" placeholder="请求体"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">响应断言</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="inputEmail5" placeholder="Password">
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default" @click='save'>save</button>
            </div>
        </div>
    </form>
</div>


</div>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/vue"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            caseName: '新增岗位',
            request: {
                requestPath: '/addcase',
                requestMethod: 'post',
                requestHeader: 'json',
                requestBody: {'name':'zhangsan'}
            },
            extractBinds: [],
            validators: []
        },
        methods: {
            save:function() {
                this.$http({
                    method: 'post',
                    url: 'http://192.168.18.2/addCase',
                    data: data
                })
            }
        }
    })
</script>


</body>
</html>